<%@page contentType="text/html;charset=UTF-8"%>
<%@include file="/common/commonTag.jsp"%>

<html>
	<head>
		<title>添加保护资源</title>
		<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	</head>

	<body>
		<div class="context_head">
			后台管理 &gt;&gt;&nbsp;权限管理&gt;&gt;&nbsp;添加保护资源 
		</div>
		<div class="context_text">
			<form id="form" action="${path}/privilegeRes!addResource.action" method="post">
			<table class="tables" width="50%">
				<tr>
					<th colspan="2" class="th1">
						添加保护资源
					</th>
				</tr>
				<tr>
					<td class="td3" align=right>
						资源类型：
					</td>
					<td class="td3">
						<select name="res.resId">
							<c:forEach var="resItem" items="${resItem}">
								<option value="${resItem.id}" ${param.resTypeId == resItem.id?"selected":""}>${resItem.sysItemName}</option>							
							</c:forEach>
						</select>
					</td>
				</tr>
				<tr>
					<td class="td3" align=right>
						资源名称：
					</td>
					<td class="td3">
						<input type="text" class="input1" name="res.resName" id="resName"/>
					</td>
				</tr>
				<tr>
					<td class="td3" align=right>
						资源地址：
					</td> 
					<td class="td3">
						<input type="text" class="input1" name="res.resUrl" id="resUrl"/>
					</td>
				</tr>
				<tr>
					<td class="td3" align=right>
						资源类型：
					</td>
					<td class="td3">
						<select name="res.resType">
							<option selected="selected">请选择</option>
							<option value="create">添加</option>
							<option value="view">查询</option>
							<option value="update">修改</option>
							<option value="delete">删除</option>
						</select>
					</td>
				</tr>
				<tr>
					<td class="td3" align=right>
						资源优先级：
					</td>
					<td class="td3">
						<input type="text" name="res.resPriorty" value="0" size="5" readonly="readonly"/>
					</td>
				</tr>
				<tr>
					<td class="td3" align=right>
						资源描述：
					</td>
					<td class="td3">
						<input type="text" class="input1" name="res.resDesc" />
					</td>
				</tr>
				<tr>
					<td colspan="2" align="center">
						<input type="submit" value="提交" />
						<input type="button" value="提交" onclick="valiSub('form')"/>
					</td>
				</tr>
			</table>
		</form> 
		</div>
	</body>
</html>
